package com.eportal.api;

import net.sf.json.JSONArray;
import net.sf.json.JSONObject;

public class AcceptTlocksJson extends MdOpenBaseJson{

	
	public static AcceptTlocksJson parse(String json){
		AcceptTlocksJson bean  = new AcceptTlocksJson();
		AcceptTlocks acceptTlocks = bean.new AcceptTlocks();
			//如果请求是成功的,解析msg部分,
			JSONObject obj = JSONObject.fromObject(json);
			for (int i = 0; i < obj.size(); i++) {
//				String pid = obj.getJSONObject(i).getString("pid");
			}
			JSONArray arr = obj.getJSONArray("msg");
			JSONObject keyJson =  arr.getJSONObject(0);
//			key.setAlgorithmVer(keyJson.getString("algorithmVer"));
//			key.setLock_id(keyJson.getString("lock_id"));
//			key.setLock_name(keyJson.getString("lock_name"));
//			bean.setMsg(key);
		
		return bean;
	}
	
	class AcceptTlocks{
		AcceptTlocks(){
			 
		 }
		
		private String pid;
		private String privatekey;
		private String mac20;
		private String ssid1;
		private String sn;
		private String lock_secret;
		/**
		 * pid  
		 * @return the pid
		 */
		public String getPid() {
			return pid;
		}
		
		/**
		 * pid 
		 * @param pid
		 */
		public void setPid(String pid) {
			this.pid = pid;
		}
		
		/**
		 * privatekey  
		 * @return the privatekey
		 */
		public String getPrivatekey() {
			return privatekey;
		}
		
		/**
		 * privatekey 
		 * @param privatekey
		 */
		public void setPrivatekey(String privatekey) {
			this.privatekey = privatekey;
		}
		
		/**
		 * mac20  
		 * @return the mac20
		 */
		public String getMac20() {
			return mac20;
		}
		
		/**
		 * mac20 
		 * @param mac20
		 */
		public void setMac20(String mac20) {
			this.mac20 = mac20;
		}
		
		/**
		 * ssid1  
		 * @return the ssid1
		 */
		public String getSsid1() {
			return ssid1;
		}
		
		/**
		 * ssid1 
		 * @param ssid1
		 */
		public void setSsid1(String ssid1) {
			this.ssid1 = ssid1;
		}
		
		/**
		 * sn  
		 * @return the sn
		 */
		public String getSn() {
			return sn;
		}
		
		/**
		 * sn 
		 * @param sn
		 */
		public void setSn(String sn) {
			this.sn = sn;
		}
		
		/**
		 * lock_secret  
		 * @return the lock_secret
		 */
		public String getLock_secret() {
			return lock_secret;
		}
		
		/**
		 * lock_secret 
		 * @param lock_secret
		 */
		public void setLock_secret(String lock_secret) {
			this.lock_secret = lock_secret;
		}
		
		
		
		
		
	}
}
